package com.hf.research.openfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * name  指定注册的服务名
 * path  指定PrivilegeController中@RequestMapping
 *
 * @author 占传森
 */
@FeignClient(name = "ioffice30")
public interface IOffice30OpenFeignService {

    /**
     * 获取用户名称
     *
     * @return 用户信息
     */
    @PostMapping(value = "/cloud/demo/getUserId")
    String getUserId(@RequestParam Integer userId);
}
